# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pidgin-sipe
pkgver=1.24.0
pkgrel=0
pkgdesc="Pidgin protocol plugin to connect to MS Office Communicator"
url="http://sipe.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="zlib-dev pidgin-dev e2fsprogs-dev intltool
	heimdal-dev libxml2-dev glib-dev nss-dev libnice-dev gstreamer-dev
	gmime-dev"
checkdepends="appstream"
subpackages="$pkgname-lang"
source="https://downloads.sourceforge.net/project/sipe/sipe/pidgin-sipe-$pkgver/pidgin-sipe-$pkgver.tar.bz2"

prepare() {
	default_prepare
	sed 's/-Werror -Wall/-Wall/' -i configure
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-purple \
		--disable-telepathy \
		--without-dbus \
		--without-vv
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="10182b08c854f8c116a2ebb11c5cf47608fa70c159c23b1255a5e1922013541b87569c543418e1129b79f9b01a48ecb866be42691c61b575f01744598c714099  pidgin-sipe-1.24.0.tar.bz2"
